import { lazy } from "react";
import { createBrowserRouter } from "react-router-dom"
let Home = lazy(() => import('../pages/home/Index'))
let Detail = lazy(() => import('../pages/detail/Index'))
let List = lazy(() => import('../pages/list/Index'))
let PaySuccesss = lazy(() => import('../pages/paySuccess/Index'))
let routes = createBrowserRouter([
    {
        path: '/',
        element: <Home></Home>
    },
    {
        path: '/home',
        element: <Home></Home>
    },
    {
        path:'/list',
        element:<List></List>

    },
    {
        path:'/detail',
        element:<Detail></Detail>
    },
    {
        path:'/paySuccess',
        element:<PaySuccesss></PaySuccesss>
    }
])
export default routes